/**
 * create by Alec
 */
import { createAction } from "redux-actions";
import fetch from "../../utils/fetch.js";

export const getPersonnelWeekly = createAction("PERSONNEL_WEEKLY");
export const fetchPersonnelWeekly = param => dispatch =>
    fetch(`/hrmregister/mobile/weekly/list`, {
        body: param,
        meta: {
            dipId: 66387
        }
    }).then(res => {
        if (res.success) {
            dispatch(getPersonnelWeekly(res.result));
        }
        return res;
    });
